var app_path=$t('path')[0].value;
window.onload=function(){
    showArticles();
};


function showArticles(){
    sendRequest(app_path+'/sole','<order bo="com.whstudio.article.ArticleBO" method="doQueryArticles"/>',function(request){
        var response=request.responseXML;
        var root=response.documentElement;
        alert(root.xml);
        var flag=root.getAttribute('flag');
        if(flag<0){
            alert(root.firstChild.nodeValue);
            return false;
        }
        var parameters={
            'rootContainer':$('container'),
            'container':$('articles'),
            'currentDisplay':arrays.articleArray,
            'responseXML':response,
            'template':{'title':template['article_list_title'],'row':template['article_list']},
            'itemMap':maps['itemMapArticle'],
            'ifMutiPage':true
        };
        var pager=new AjaxPager(parameters);
        pager.rowsPerPage=10;
        pager.returnFunction=function(){
            //hide('original_tasks');
            show(arrays.articleArray);
            return false;
        };
        pager.render();
    },false,'POST');
}